package javaweb_work01.main.Service;

import javaweb_work01.main.Dao.SetStudentsDao;
import javaweb_work01.main.Entity.Students;
import javaweb_work01.main.Factory.StudentsFactory;

public class SetService {
    //合成复用原则
    private SetStudentsDao setStudentsDao;

    public SetService(){
        this.setStudentsDao = StudentsFactory.getSetStudentsDao();
    }

    public void setStudentsService(Students students){
        setStudentsDao.setStudents(students);
    }
}
